import http from '../utils/http'
// interface dataType{}
const getStudent=async ()=>{
    const {data}=await http.post('/getstudent');
    return data;
}
const getStudent2=async (_data:{count:number,page:number})=>{
    const {data}=await http.post('/getstudent2',_data);
    return data;
}
const addStudent=async (_data:{name:string,sex:string,age:string})=>{
    const {data}=await http.post('/addstudent',_data);
    return data;
}
const delStudent=async (_data:{id:string})=>{
    const {data}=await http.post('/delstudent',_data);
    return data;
}
export {
    getStudent,
    getStudent2,
    addStudent,
    delStudent
}